//
//  AuthenticationEnterpriseViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "AuthenticationEnterpriseViewController.h"
#import "AutherEmterpriseViewModel.h"
#import "PowerOfAttorneyViewController.h"
#import "AutherResultsViewController.h"

@interface AuthenticationEnterpriseViewController ()<AutherEmterpriseDelegate>
@property(nonatomic,strong)AutherEmterpriseViewModel * autherEmterViewModel;
@end

@implementation AuthenticationEnterpriseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"认证企业";
    self.autherEmterViewModel = [[AutherEmterpriseViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    self.autherEmterViewModel.delegate =self;
    // Do any additional setup after loading the view.
}

#pragma mark -- AutherEmterpriseDelegate
-(void)cellPicetureAction:(GLGWButton *)c_but{
    if (c_but.tag == 130) {
        PowerOfAttorneyViewController * powerAttorneyVC = [PowerOfAttorneyViewController new];
        [self.navigationController pushViewController:powerAttorneyVC animated:YES];
    }else{
        AutherResultsViewController * autherVC = [AutherResultsViewController new];
        [self.navigationController pushViewController:autherVC animated:YES];
    }
}
@end
